$color: var(--color);
$border-width: 5rpx;

.acme-refresh {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  
  // 容器
  .container {
    width: 100%;
  
    .content {
      width: 100%;
      box-sizing: border-box;
    }
  }
  
  /* 刷新区域 */
  .refresh-wrap {
    width: 100%;
    box-sizing: border-box;
  
    .refresh {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      
      .loading {
        width: 40rpx;
        height: 40rpx;
        border-left: $border-width solid $color;
        border-right: $border-width solid $color;
        border-top: $border-width solid transparent;
        border-bottom: $border-width solid transparent;
        border-radius: 100%;  
        animation: loader 0.8s infinite;
      }   
        
      .text {
        width: 100%;
        line-height: 1;
        margin-top: 15upx;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: $color;
        font-size: 24upx;
        letter-spacing: 1upx;
        transform: scale(0.85);
      }
           
      @keyframes loader {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
    }
  }
  
  .tx {
    width: 300upx;
    height: 50upx;
    line-height: 50upx;
    padding: 15upx;
    text-align: center;
    position: fixed;
    top: 500upx;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 500;
    background-color: green;
    color: #fff;
  }
}